package
{
	import flash.events.*;
	import flash.net.*;
	
	public class xmlParser 
	{
		private var _xmlList:XMLList;
		private var name:String;
		public function xmlParser(_url:String)
		{
			var xmlLoader:URLLoader = new URLLoader();
			xmlLoader.addEventListener(Event.COMPLETE,loadXML);
			
			var xml_url:URLRequest = new URLRequest(_url);
			xmlLoader.load(xml_url);
			trace(_xmlList);
		}
		
		private function loadXML(e:Event):void{
			var xmlData:XML = new XML(e.target.data);
			_xmlList = xmlData.Book;
		}
		
		public function returnXML():XMLList{
			//trace(this._xmlList);
			return _xmlList;
		}
		
		private function setName():void{
			name = "tt";
		}
		
		public function getName():String{
			return name;
		}
	}
}